package JumpingGame;

public class Main {
    public static void main(String[] args) {
        int[] nums1 = {2, 3, 1, 1, 4};
        boolean result1 = Solution.canJump(nums1);
        System.out.println("Test Case 1: " + result1); // 应该输出 true

        int[] nums2 = {3, 2, 1, 0, 4};
        boolean result2 = Solution.canJump(nums2);
        System.out.println("Test Case 2: " + result2); // 应该输出 false
    }

}
